#!/bin/bash
#Helperscript
#Run ALL the other scripts

#Remove old slices
rm -rf slices*
#Call Tagger input build script
perl ./build_tagger_input.pl

#Remove old testsuites
rm -rf ./testsuites
mkdir ./testsuites

#Prepare working directories
i=0
while [ $i != 10 ]; do
	rm -rf ./test$i.tt
	rm -rf ./test$i.cc
	rm -rf ./test$i.tt_gold
	rm -rf ./test$i.cc_gold
	mkdir ./test$i.tt
	mkdir ./test$i.cc
	mkdir ./test$i.tt_gold
	mkdir ./test$i.cc_gold
	i=`expr $i + 1`
done

#Call script to make testsuites
perl ./make_testsuites.pl

#Move Stuff around
	mv *test testsuites
	cd testsuites
		mkdir tt
			mv ../*.tt* tt
			cd tt
			mkdir gold
				mv ./*gold gold
		cd ..
	
		mkdir cc
			mv ../*.cc* cc
			cd cc
			mkdir gold
				mv ./*gold gold
			cd ..
	cd ..

#Call script that runs the taggers
perl ./run_taggers.pl